package com.gskj.gulimall.auth.feign;

import club.gskj.common.utils.R;
import com.gskj.gulimall.auth.vo.SocialUser;
import com.gskj.gulimall.auth.vo.UserLoginVo;
import com.gskj.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName MemberFeignService
 * @Description TODO
 * @Author 康纳
 * @Date 2021-03-15
 */


/***
 *  用户服务接口
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    /**
     * @param memberRegisterVo
     * @return club.gskj.common.utils.R
     * @author 康纳-connor
     * @creed: Talk is cheap,show me the code
     * @date 21.3.15 21:48
     * @Description 注册用户信息
     */
    @PostMapping("/member/member/register")
    R registerMember(@RequestBody UserRegisterVo memberRegisterVo);

    /**
     * @param vo
     * @return club.gskj.common.utils.R
     * @author 康纳-connor
     * @creed: Talk is cheap,show me the code
     * @date 21.3.16 21:58
     * @Description 用户登陆
     */
    @PostMapping("/member/member/login")
    R memberLogin(@RequestBody UserLoginVo vo);

    /***
     *  社交用户登陆
     * @param vo
     * @return
     */
    @PostMapping("/member/member/auth2/login")
    public R authLogin(@RequestBody SocialUser vo);
}

